package viewPackage.menus;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

public abstract class SetKeyListener implements KeyListener {

	private JLabelMouse2 jlm;

	public SetKeyListener(JLabelMouse2 labelMouse) {
		this.setJlm(labelMouse);
	}

	public abstract void keyPressed(KeyEvent e);

	@Override
	public void keyReleased(KeyEvent e) {
		// Do nothing.		
	}

	@Override
	public void keyTyped(KeyEvent e) {
		//Do nothing.
	}

	public void setJlm(JLabelMouse2 jlm) {
		this.jlm = jlm;
	}

	public JLabelMouse2 getJlm() {
		return jlm;
	}

}
